import Layout from '@/layout/index.vue'

const asyncRoutes = [
  {
    path: '/',
    component: Layout,
    redirect: '/dashboard',
    meta: {
      title: '首页',
      icon: 'nav-icon icon-dashboard',
      resourceId: 'route:/web/home-page/',
    },
    children: [
      {
        path: '/dashboard',
        name: 'Dashboard',
        component: () => import('@/views/dashboard'),
        meta: {
          title: '首页',
          resourceId: 'route:/web/home-page/home-page/',
        },
      },
      {
        path: '/fileSystem',
        name: 'FileSystem',
        component: () => import('@/views/dashboard/fileSystem.vue'),
        meta: {
          title: '知识库',
          resourceId: 'route:/web/home-page/knowledge_base/',
        },
      },
      // {
      //   path: '/preview0',
      //   name: 'Statistics0',
      //   component: () => import('@/views/dashboard/Statistics0.vue'),
      //   meta: {
      //     title: '充电大数据',
      //   },
      // },
      {
        path: '/preview',
        name: 'Statistics',
        component: () => import('@/views/dashboard/Statistics.vue'),
        meta: {
          title: '充电大数据',
          resourceId: 'route:/web/home-page/exhibition/',
        },
      },
    ],
  },
]
export default asyncRoutes
